package com.lzk.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lzk.common.R;
import com.lzk.dto.DishDto;
import com.lzk.pojo.Category;
import com.lzk.pojo.Dish;

import java.util.List;

public interface DishService extends IService<Dish> {
    R<String> saveWithFlavor(DishDto dishDto);

    R<Page<DishDto>> myPage(int page, int pageSize, String name);

    R<DishDto> showDishWhenUpdate(Long id);

    R<String> updateWithFlavor(DishDto dishDto);

    R<String> SaleByIds(int status, List<Long> ids);

    R<String> deleteByIds(List<Long> ids);

    R<List<DishDto>> listDish(DishDto dishDto);
}
